﻿@model List<WebApplication1.Models.Course>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div> 
        <table border="1">
            <thead>
                <tr>

                    <td>CourseID</td>
                    <td>Title</td>
                    <td>Credits</td>
                    <td>DepartmentID</td>
                    <td>Modify</td>
                    <td>Remove</td>
                </tr>
                
            </thead>
            <tbody>
               @foreach (var item in Model)
               {
                <tr>
                    <td>@item.CourseID</td>
                    <td>@item.Title</td>
                    <td>@item.Credits</td>
                    <td>@item.DepartmentID</td>
                    <td><a href="/Default/Modify/@item.CourseID">修改</a></td>
                    <td><a href="/Default/Remove/@item.CourseID">删除</a></td>

                </tr>
               }
            </tbody>
        </table>
    </div>
</body>
</html>
